<!--  -->
<template>
  <div></div>
</template>

<script>
import * as WindowType from '@/config/windowtype.js'
import * as PubsubType from '@/config/pubsubtype.js'
import VueFunctions from '@/core/VueFunctions.js'
import storage from '@/core/storage.js'
import PubSub from 'pubsub-js'
export default {
  computed: {
  },
  created () {
    // 获取 Design 路径path
    VueFunctions.method(WindowType.COMBINATION_KEYS_ALT_AND_1, () => {
      let mainbox = storage.getItem(WindowType.GET_CONTAINER_MAINBOX_NOHOVER)
      let col = storage.getItem(WindowType.GET_CONTAINER_COL_NOHOVER)
      let box = storage.getItem(WindowType.GET_CONTAINER_BOX_NOHOVER)
      if (parseInt(mainbox) === 0 && parseInt(col) === 0 && parseInt(box) === 0) {
        this.$message.warning('全容器编辑已关闭，无法显示容器编辑！')
        return
      }
      if (this.design.ref.contentWindow && this.design.ref.contentWindow.vueFunc) {
        if (this.toggle) {
          this.$message.success('全容器固定！')
          this.allFixed()
        } else {
          this.$message.info('全容器固定取消！')
          this.allNotFixed()
        }
      }
      this.toggle = !this.toggle
    })
    VueFunctions.method(WindowType.COMBINATION_KEYS_F5, (path) => {
      PubSub.publish(PubsubType.PUBSUB_DESIGN_REFRESH_PAGE)
    })
  },
  data () {
    return {
    }
  },
  methods: {
  }
}

</script>
